<template>
  <div class="about">
    <h1>This is an about page</h1>
	<el-button type="primary" @click="btn01">查询</el-button>
  </div>
</template>
<script>
	import $ from "jquery";
	export default{
		methods:{
			btn01:function(){
				let fthis=this;
				$.ajax({
					url:"http://localhost:8081/cart/showCart02",
					data:{current:1},
					headers:{"token":localStorage.getItem("token")},
					type:"get",
					success:function (data) {
						let message="失败";
						// message=data.message;
						fthis.$message({
							showClose: true,
							message: '登录'+message,
							type: 'success'
						});
					}
				})
			},
			
		},
	}
</script>
